﻿/************************************************
*
* Copyright(c) ZeeGuo.com
*
* CLR : 4.0.30319.296
*
* FileName : ComicFactory.cs
*
* Author : Kurodo
*
* CreatTime : 2013/7/17 11:20:29
*           
*************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComicSpider;
using ComicSpider.Model;

namespace ComicSite
{
    public class ComicFactory
    {
        public static IComicSite CreateSite(int site)
        {
            IComicSite iSite = null;
            switch (site)
            {
                case 0:
                    iSite = new Site178Factory();
                    break;
                case 1:
                    iSite = new Site7k7kFactory();
                    break;
                case 2:
                    iSite = new Site4399Factory();
                    break;
                case 3:
                    break;
                case 4:
                    break;
                case 5:
                    break;
                default:
                    break;
            }

            return iSite;
        }

        public static IComicStorage CreateStorage(int site)
        {
            IComicStorage iStorage = null;
            switch (site)
            {
                case 0:
                    iStorage = new Site178ComicStorage();
                    break;
                case 1:
                    iStorage = new Site7k7kComicStorage();
                    break;
                case 2:
                    iStorage = new Site4399ComicStorage();
                    break;
                case 3:
                    break;
                case 4:
                    break;
                case 5:
                    break;
                default:
                    break;
            }

            return iStorage;
        }
    }
}
